package com.tao.service;

import java.util.List;

import com.tao.entity.CarGood;
import com.tao.entity.ShoppingCar;

/**
 * 购物车的 model 接口
 * @author Administrator
 *
 */
public interface ShoppingCarService {
  
	
	public int addShoppingCar(ShoppingCar shoppingCar);
	public List<ShoppingCar> findCarById(int id);
	//根据商品Id来查购物车 
	public List<ShoppingCar> findCarByPid(int id);
	public List<CarGood> findShoppingCarById(int id);
	public int updateShoppingCar(int pid,int num);
	//删除购物车通过购物车id
	public int deleteCar(List<Integer> carids);
}
